﻿using SqlSugar;
using Prism.Mvvm;
using FrameWork.Core.Base;
using System.ComponentModel;

namespace FrameWork.Npoi
{
    public abstract class ImportModelBase : BindableBase
    {
        protected enumExcelImportStatus _importStatus;
        [SugarColumn(IsIgnore = true, Length = 16)]
        public enumExcelImportStatus ImportStatus
        {
            get { return _importStatus; }
            set { SetProperty(ref _importStatus, value); }
        }
    }

    public enum enumExcelImportStatus
    {
        /// <summary>
        /// 准备导入
        /// </summary>
        [Description("准备导入")]
        Ready = 0,
        /// <summary>
        /// 成功
        /// </summary>
        [Description("成功")]
        Success = 1,
        /// <summary>
        /// 失败
        /// </summary>
        [Description("失败")]
        Error = 2,
        /// <summary>
        /// 数据异常
        /// </summary>
        [Description("数据异常")]
        DataError = 3,
        /// <summary>
        /// 重复
        /// </summary>
        [Description("重复")]
        Repeat = 4,
    }
}
